<template>
	<div>
		<div class="title">
			<div class="welcome">欢迎！</div>
			<div class="name">{{name}}老师，您可以：</div>
		</div>
		
		<div class="main-box">
			<div class="box">
				<van-icon name="manager-o" size="1.7rem"/>
				<div>
					<van-button type="primary" class="btn" color="#00669a">发布职位</van-button>
				</div>
			</div>
		</div>
		
		<div class="main-box">
			<div class="box">
				<van-icon name="orders-o" size="1.7rem"/>
				<div>
					<van-button type="primary" class="btn" color="#00669a">查看志愿者名单</van-button>
				</div>
			</div>
		</div>
		
		<div class="main-box">
			<div class="box">
				<van-icon name="completed" size="1.7rem"/>
				<div>
					<van-button type="primary" class="btn" color="#00669a">查看打卡情况</van-button>
				</div>
			</div>
		</div>
		
	</div>
</template>

<script>
	export default {
		data() {
			return {
				name: '李四'
			}
		}
	}
</script>

<style lang="less" scoped>
	.title {
		position: relative;
		height: 100px;
		background-color: #00669a;
		color: white;
		box-sizing: border-box;
		font-weight: bold;
	}
	.welcome {
		position: absolute;
		left: 10px;
		top: 10px;
	}
	.name {
		position: absolute;
		bottom: 20px;
		left: 10px;
	}
	
	.box {
		display: flex;
		align-items: center;
		margin-left: 10px;
		margin-top: 10px;

	}
	.main-box {
		padding-bottom: 10px;
		border-bottom: 5px solid #f2f2f2;
	}
	.btn {
		margin-left: 30px;
		border-radius: 10px;
		width: 180px;
		font-size: 20px;
		font-weight: lighter;
		height: 40px;
	}
</style>